﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="SuaSP.aspx.cs" Inherits="WebApplication1.Admin.SuaSP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


<div style="width:790px; padding:0px 5px 0 5px;">
<div class="ct_top">
<div class="ct_left"></div>
<div class="ct_right"></div>
<div class="ct_center"><h1>Sửa thông tin sản phẩm</h1></div>
</div> 

 <div class="ct_middle">
<div>
       <asp:Label ID="Lbthongbao" ForeColor="Red" runat="server" Text=""></asp:Label>
</div>
    <asp:DataList ID="DataList1" runat="server">
  <ItemTemplate>
<table style="padding:10px 0 0 100px;" cellpadding="4">

<td class="td_lable">
    <asp:Label ID="Label3" runat="server" Text="Mã sản phẩm :"></asp:Label>
</td>
<td class="td_textbox">
    <asp:TextBox ID="TextBoxmasanpham" ReadOnly="true" Text='<%#Eval("Idsp") %>' runat="server" Width="180px"></asp:TextBox>
</td>
    <td rowspan="9" style="width:350px;">
    <asp:Image ID="Imagehinhup" runat="server" ImageUrl='<%#Eval("Hinh") %>'  Width="350px" />
       
      </td>
</tr>
  <tr>
    <td class="td_lable">
    <asp:Label ID="Label1" runat="server" Text="Loại sản phẩm :"></asp:Label>
    </td>
    <td class="td_textbox">
    <asp:DropDownList ID="DropDownListloaisanpham"   runat="server" Width="185px">
    </asp:DropDownList>
    </td>
</tr>

  <tr>
    <td class="td_lable">
    <asp:Label ID="Label2" runat="server" Text="Tên sản phẩm :"></asp:Label>
    </td>
    <td class="td_textbox">
    <asp:TextBox ID="TextBoxtensanpham" Text='<%#Eval("Tensp") %>'  runat="server" Width="180px"></asp:TextBox>
    </td>
</tr>
  <tr>
    <td class="td_lable">
    <asp:Label ID="Label4" runat="server" Text="Kiểu dáng :"></asp:Label>
    </td>
    <td class="td_textbox">
    <asp:TextBox ID="TextBoxkieudang" Text='<%#Eval("Kieudang") %>'  runat="server" Width="180px"></asp:TextBox>
    </td>
</tr>

  <tr>
    <td class="td_lable">
    <asp:Label ID="Label10" runat="server" Text="Chất liệu :"></asp:Label>
    </td>
    <td class="td_textbox">
    <asp:TextBox ID="TextBoxchatlieu" Text='<%#Eval("Chatlieu") %>'  runat="server" Width="180px"></asp:TextBox>
    </td>
</tr>
  <tr>
    <td class="td_lable">
    <asp:Label ID="Label5" runat="server" Text="Kích cỡ :"></asp:Label>
    </td>
    <td class="td_textbox">
    <asp:TextBox ID="TextBoxkickco" Text='<%#Eval("Kichco") %>'  runat="server" Width="180px"></asp:TextBox>
    </td>
 </tr>
 
 <tr>
    <td class="td_lable">
    <asp:Label ID="Label6" runat="server" Text="Màu sắc :"></asp:Label>
    </td>
    <td class="td_textbox">
    <asp:TextBox ID="TextBoxmau" Text='<%#Eval("Mau") %>'  runat="server" Width="180px"></asp:TextBox>
    </td>
</tr>

  <tr>
    <td class="td_lable">
    <asp:Label ID="Label7" runat="server" Text="Xuất xứ :"></asp:Label>
    </td>
    <td class="td_textbox">
    <asp:TextBox ID="TextBoxxuatxu" Text='<%#Eval("Xuatxu") %>'  runat="server" Width="180px"></asp:TextBox>
    </td>
</tr>

  <tr>
<td class="td_lable">
    <asp:Label ID="Label8" runat="server" Text="Đơn giá :"></asp:Label>
</td>
<td class="td_textbox">
    <asp:TextBox ID="TextBoxdongia" Text='<%#Eval("Dongia") %>' MaxLength="7"  runat="server" Width="180px"></asp:TextBox>

       <input id="inputdongia" visible="false" runat="server" onkeypress="return isNumberKey(event)" maxlength="7" type="text" 
        name="txtChar">
</td>
    </tr>


<td class="td_lable">
    <asp:Label ID="Label9" runat="server" Text="URL hình :"></asp:Label></td><td class="td_textbox">
   <asp:FileUpload ID="FileUpload1" runat="server" Width="150px" 
        style="margin-bottom: 0px"  />
</td>
<tr>
<td align="center" colspan="3">
    <asp:Label ID="Label11" ForeColor="Red" runat="server" Text=""></asp:Label></td></tr><tr>
   <td align="center" colspan="3">

       <asp:Button ID="Buttonthem" runat="server" Text="Cập nhật" onclick="Buttonthem_Click" 
           />
   
    </td>
   </tr>
</table>
</ItemTemplate>
  </asp:DataList>
  
     </div>
<div class="ct_bottom">
<div class="ct_left"></div>
<div class="ct_right"></div>
<div class="ct_center"></div>
</div>
 </div>
</asp:Content>
